import java.util.List;

/**
 * @author MyPC
 * @date 2018/6/28
 */

class DaoPatternDemo {


    public static void main(String[] args) {
        StudentDaoImpl studentDao = new StudentDaoImpl();


        //查询所有学生
        List<Student> allStudents = studentDao.getAllStudents();
        for (Student allStudent : allStudents) {
            System.out.println(allStudent.toString());
        }

        //


    }
}
